package com.ruoyi.erp.coordinatorgroup.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.erp.coordinatorgroup.domain.OrderCoordinatorGroupTab;
import com.ruoyi.erp.coordinatorgroup.mapper.CoordinatorGroupMapper;
import com.ruoyi.erp.coordinatorgroup.service.CoordinatorGroupService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoordinatorGroupImpl implements CoordinatorGroupService {
  @Autowired
  private CoordinatorGroupMapper coordinatorGroupMapper;

  @Override
  public List<OrderCoordinatorGroupTab> getList(OrderCoordinatorGroupTab orderCoordinatorGroupTab) {
    return coordinatorGroupMapper.coordinatorGroupList(orderCoordinatorGroupTab);
  }

  @Override
  public void insertCoordinator(OrderCoordinatorGroupTab orderCoordinatorGroupTab) {
    coordinatorGroupMapper.insertCoordinator(orderCoordinatorGroupTab);
  }

  @Override
  public int deleteCoordinator(String [] authorize_group){
    return coordinatorGroupMapper.deleteCoordinator(authorize_group);
  }

  @Override
  public void updateCoordinator(OrderCoordinatorGroupTab orderCoordinatorGroupTab) {
    coordinatorGroupMapper.updateCoordinator(orderCoordinatorGroupTab);
  }

  @Override
  public OrderCoordinatorGroupTab findOrderCoordinatorGroupTab(String authorize_group) {

   return coordinatorGroupMapper.findOrderCoordinatorGroupTab(authorize_group);

  }

}
